package com.ptszyxx.popose.common.enums;

import com.ysg.utils.YStringUtil;

public enum MineFollowTabEnum {
    intimacy("0", "亲密度"),
    follow("1", "关注"),
    fans("2", "粉丝");

    private String type;
    private String name;

    MineFollowTabEnum(String type, String name){
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static MineFollowTabEnum get(String name){
        MineFollowTabEnum[] values = values();
        for (MineFollowTabEnum item: values) {
            if (YStringUtil.eq(item.getName(), name)){
                return item;
            }
        }
        return null;
    }

}
